#include "MainWindow.h"
#include "PointMapItem.h"
#include "MapLayer.h"
#include <QTimer>

MainWindow::MainWindow(QWidget *parent)
	: QMainWindow(parent)
{
	ui.setupUi(this);

	
	QTimer::singleShot(200, this, [&] 
	{
		auto item = new PointMapItem();
		ui.centralWidget->getMapLayerByName()->addMapItem(item);
		ui.centralWidget->update();
	});
}
